/*
 * @Author: zds
 * @Date: 2022-10-24 14:12:10
 * @LastEditors: zds
 * @LastEditTime: 2022-10-24 14:59:12
 * @Description: file content
 * @FilePath: \qjt-app\src\libs\project-proxy.js
 */
// 项目的代理配置
//      后端改用模块开发 不再是统一的/api

module.exports = {
    init: (server) => {
        // 返回代理配置
        return {
            '/project': {
                target: server,
                changeOrigin: true
            },
            '/statistics': {
                target: server,
                changeOrigin: true
            },
            '/risk': {
                target: server,
                changeOrigin: true
            },
            '/video': {
                target: server,
                changeOrigin: true
            },
            '/quality': {
                target: server,
                changeOrigin: true
            },
            '/common': {
                target: server,
                changeOrigin: true
            }
        }
    }
}